//
//  HROrderDetailTableHear2.m
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-15.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HROrderDetailHead.h"

@implementation HROrderDetailHead

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

-(id)initWithProgress:(BOOL)hasProgress{
    self = [[[NSBundle mainBundle] loadNibNamed:@"HROrderDetailHead"
                                          owner:self
                                        options:nil] objectAtIndex:0];
    _viewBg2.hidden = !hasProgress;
    _progressViewHeight.constant = 0;
    return self;
}

- (IBAction)actionToProgress:(id)sender {
    if ([self.delegate respondsToSelector:@selector(pushToProgressView)]) {
        [self.delegate pushToProgressView];
    }
}
@end
